package com.yunhe.rentcars.pro.dao.permi;





import com.yunhe.rentcars.pro.entity.permi.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/10/17 0017.
 */
public interface UserDao {

    /**
     * 添加用户
     * @param user
     */
    void save(User user);

    /**
     * 删除用户
     * @param uid
     */
    void delete(Long uid);

    /**
     * 修改用户
     * @param user
     */
    void update(User user);


    /**
     * 动态查询用户
     * @param user
     * @return
     */
    User find(User user);


    User findOne(User user) ;
    /**
     * 查询所有用户
     * @return
     */
    List<User> findList();



    List<User> findPage(@Param("offset") Integer offset, @Param("limit")Integer limit ,@Param("user")User user);

    /**
     * 查询用户总数
     * @return
     */
    int count(@Param("user") User user);

}
